<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-s_name" class="control-label col-xs-12 col-sm-2">{:__('S_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-s_name" data-rule="required" class="form-control" name="row[s_name]" type="text" value="{$row.s_name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-s_image" class="control-label col-xs-12 col-sm-2">{:__('S_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-s_image" data-rule="required" class="form-control" placeholder="图片格式:宽度大于115px，高度大于90px。比列4:3,图片大小500KB"  name="row[s_image]" type="text" value="{$row.s_image}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-s_image" class="btn btn-danger plupload" data-input-id="c-s_image" data-maxsize="500KB" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-s_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-s_image" class="btn btn-primary fachoose" data-input-id="c-s_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-s_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-s_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-s_images" class="control-label col-xs-12 col-sm-2">{:__('S_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-s_images" data-rule="required" class="form-control" placeholder="宽度大于420px，高度大于215px。比列2:1,图片大小500KB" name="row[s_images]" type="text" value="{$row.s_images}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-s_images" class="btn btn-danger plupload" data-input-id="c-s_images" data-maxsize="500KB" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-s_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-s_images" class="btn btn-primary fachoose" data-input-id="c-s_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-s_images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-s_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-s_address" class="control-label col-xs-12 col-sm-2">{:__('S_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-s_address" data-rule="required" class="form-control" name="row[s_address]" type="text" value="{$row.s_address}">
        </div>
    </div>
	<div class="form-group">
		<label for="c-area_id" class="control-label col-xs-12 col-sm-2">{:__('店铺区域')}:</label>
		<div class="col-xs-12 col-sm-8">

			<select  id="c-area_id" data-rule="required" class="form-control selectpicker" name="row[area_id]" {$disabled}>
				{foreach name="areaList" item="vo"}
				<option value="{$key}" {eq name="$row.area_id" value="$key"}selected="selected"{/eq}>{$vo}</option>
				{/foreach}
			</select>

		</div>
	</div>
    <div class="form-group">
        <label for="c-pos_latitude" class="control-label col-xs-12 col-sm-2">{:__('Pos_latitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pos_latitude" data-rule="required" class="form-control" step="0.0000001" name="row[pos_latitude]" type="number" value="{$row.pos_latitude}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-pos_longitude" class="control-label col-xs-12 col-sm-2">{:__('Pos_longitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pos_longitude" data-rule="required" class="form-control" step="0.0000001" name="row[pos_longitude]" type="number" value="{$row.pos_longitude}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-service_phone" class="control-label col-xs-12 col-sm-2">{:__('Service_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_phone" data-rule="required" class="form-control" name="row[service_phone]" type="text" value="{$row.service_phone}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-contact_name" class="control-label col-xs-12 col-sm-2">{:__('Contact_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_name" data-rule="required" class="form-control" name="row[contact_name]" type="text" value="{$row.contact_name}">
        </div>
    </div>


	<div class="form-group">
		<label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
		<div class="col-xs-12 col-sm-8">

			<div class="radio">
				{foreach name="statusList" item="vo"}
				<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label>
				{/foreach}
			</div>

		</div>
	</div>




    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
